/**
 * This file is part of 1genia trampoline
 * Copyright (C) 2007 1genia (contact@1genia.com)
 *
 * This library is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; version 3 of the License. 
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details. 
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; see the file COPYING.TXT.  If not,
 * write to the Free Software Foundation, Inc., 51 Franklin Street,
 * Fifth Floor, Boston, MA 02110-1301, USA. 
 **/
package com.genia.toolbox.portlet.editor.model.bean;

import com.genia.toolbox.basics.editor.model.bean.InitialSettings;
import com.genia.toolbox.portlet.editor.model.portlet.PortletType;
import com.genia.toolbox.web.portlet.description.PortletDescription;

/**
 * Initial settings used when selecting a new portlet or a new template.
 */
public class PortletInitialSettings
    extends InitialSettings
{

  /**
   * The portlet name.
   */
  private String portletName = null;

  /**
   * The portlet description.
   */
  private PortletDescription portletDescription = null;

  /**
   * The portlet type.
   */
  private PortletType portletType = null;



  /**
   * Constructor used when selecting a sub-portlet.
   * 
   * @param description
   *          the portlet description.
   * @param type
   *          The portlet type.
   */
  public PortletInitialSettings(PortletDescription description, PortletType type)
  {
    super();
    this.portletDescription = description;
    this.portletType = type;
  }



  /**
   * Constructor used when selecting a portlet.
   * 
   * @param portletName
   *          The portlet name.
   * @param type
   *          The type name.
   */
  public PortletInitialSettings(String portletName, PortletType type)
  {
    super();
    this.portletName = portletName;
    this.portletType = type;
  }



  /**
   * Get the portlet name.
   * 
   * @return the portlet name.
   */
  public String getPortletName()
  {
    return this.portletName;
  }



  /**
   * Get the portlet description.
   * 
   * @return the portlet description.
   */
  public PortletDescription getPortletDescription()
  {
    return this.portletDescription;
  }



  /**
   * Get the portlet type.
   * 
   * @return the portlet type.
   */
  public PortletType getPortletType()
  {
    return this.portletType;
  }

}
